//
//@File    :	practice_2.6.cpp
//@Time    :	2021/08/18 20:41:34
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	光年-距离转换
//

#include <iostream>

using namespace std;
long double lightyear_to_dis(double lightyear);
int main()
{
    double lightyear;
    cout<<"Enter the number od light years: ";
    cin>>lightyear;
    cout<<lightyear<<" light years = "
        <<lightyear_to_dis(lightyear)<<" astronomical units.\n";
    system("pause");
    return 0;
}
long double lightyear_to_dis(double lightyear)
{
    return lightyear*63240;
}